package thread;

/**
 * @author: omybug
 * @date: 18/9/30 16:29
 */
public class Thread1 extends Thread {

    private String name;

    public Thread1(String name){
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println(name + " - " + Thread.currentThread().getName());
        for(int i = 0 ; i < 50000 ; i++){
//            if(Thread.interrupted()){
//                return;
//            }
            System.out.println(i);
        }
    }
}
